import { defineStore } from 'pinia'

export const useBookStore = defineStore('book', {
  state: () => {
    return {
      bookList: [
        {
          id: 1,
          title: '水浒传',
          description: '梁山108好汉'
        },
        {
          id: 2,
          title: '三国演义',
          description: '东汉末年分三国'
        },
        {
          id: 3,
          title: '西游记',
          description: '师徒四人西天取经'
        },
        {
          id: 4,
          title: '红楼梦',
          description: '贾宝玉和林黛玉的故事'
        }
      ]
    }
  }
})
